package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account implements Comparable<Account>{

    private Integer id;
    private String name;
    private String password;
    private String gender;
    private Integer money;
    private String address;
    private String phone;
    private Date birthday;
    @Override
    public int compareTo(Account o) {
        return this.money - o.money;
    }
}
